From: Florian Müllner Date: Fri, 2 Oct 2020 15:10:42 +0000 (+0200) Subject: dash: Restore icon's expected DND behavior X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~655^2^2~18 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=432c2863abcc754cbaf84b26b27cc08cb7f335c4;p=gnome-shell.git dash: Restore icon's expected DND behavior Commit ff3d32dd186fa added a custom DashIcon subclass that disables all DND methods from ancestors, including canceling the context menu timeout and emitting the overview's item-drag-begin signal. All we want is opting out of the parent's scale-and-fade behavior, so override those methods instead. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3209 --- diff --git a/js/ui/dash.js b/js/ui/dash.js index dbddd996f..7e4457e5e 100644 --- a/js/ui/dash.js +++ b/js/ui/dash.js @@ -31,11 +31,11 @@ class DashIcon extends AppDisplay.AppIcon { }); } - // Disable all DnD methods - _onDragBegin() { + // Disable scale-n-fade methods used during DND by parent + scaleAndFade() { } - _onDragEnd() { + undoScaleAndFade() { } handleDragOver() {